package com.itheima01;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.function.Predicate;

public class Test01 {
    public static void main(String[] args) {
        Collection<String> c = new ArrayList<>();
        c.add("JavaSE");
        c.add("JavaME");
        c.add("JavaEE");

        c.removeIf(new Predicate<String>() {
            @Override
            public boolean test(String s) {
                return false;
            }
        });

        c.removeIf((s) -> s.contains("EE"));
        System.out.println("c = " + c);
    }
}
